import pickle
import json
import msgpack

# data = [{'a': 'A', 'b': 2, 'c': 2.22}]
# data_string = pickle.dumps(data)
# object_data = pickle.loads(data_string)
# print(object_data)


# my_dict = {'a': '1', 'b': '2', "c": 3, 'd': 4}
# a = json.dumps(my_dict)
# print(a, type(a))
# object_my_dict = json.loads(a)
# print(object_my_dict)

v = msgpack.packb([1, 2, 3])
print(v)
object_msgpack = msgpack.unpackb(v)
print(object_msgpack)
